package POJO;

import java.util.List;

public class TbProduct {
    private int pid;
    private String name;
    private double price;
    private List<TbOrder> orders;

    @Override
    public String toString() {
        return "TbProduct{" +
                "id=" + pid +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", orders=" + orders +
                '}';
    }

    public int getId() {
        return pid;
    }

    public void setId(int id) {
        this.pid = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public List<TbOrder> getOrders() {
        return orders;
    }

    public void setOrders(List<TbOrder> orders) {
        this.orders = orders;
    }
}
